package com.cloudbroker.bcs.platform.ltb.middle.entity;

import com.cloudbroker.bcs.common.entity.StatusUpdatable;

/**
 * Created by tianrui on 2016/7/5.
 */
public class UserEntity extends StatusUpdatable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    protected long user_id;
    protected String user_name;
    protected String password;
    protected String salt;
    protected String yunxin_accid;
    protected String yunxin_token;
    protected String qq_open_id;
    protected String weibo_id;
    protected long cif_id;
    protected String wx_public_account;
    protected String user_type;
    protected long accounts_id;
    protected String company_id;
    protected String user_key;
    protected String sendercomp_id;
    protected String user_status;
    protected String alias_name;
    protected String avatar;
    protected String mobile;
    protected String avatar_base64;
    protected long last_login_time;
    protected String invite_code;
    protected int invite_num;
    protected String open_id;

    protected int answer_num;


    public UserEntity(){}
    public UserEntity(long user_id) {
        this.user_id = user_id;
    }
    public UserEntity(String invite_code){
        this.invite_code=invite_code;
    }
    public UserEntity(long user_id, String password) {
        this.user_id = user_id;
        this.password = password;
    }

    public UserEntity(String user_name, String user_type, String sendercomp_id, String company_id){
        this.user_name = user_name;
        this.user_type = user_type;
        this.sendercomp_id = sendercomp_id;
        this.company_id = company_id;
    }

    public UserEntity(String user_name, String user_type, String company_id, String sendercomp_id, String password) {
        this.user_name = user_name;
        this.user_type = user_type;
        this.company_id = company_id;
        this.sendercomp_id = sendercomp_id;
        this.password = password;
    }

    public UserEntity(long accounts_id, String company_id, String sendercomp_id, String user_type) {
        this.accounts_id = accounts_id;
        this.company_id = company_id;
        this.sendercomp_id = sendercomp_id;
        this.user_type = user_type;
    }



    public String getAvatar_base64() {
        return avatar_base64;
    }

    public void setAvatar_base64(String avatar_base64) {
        this.avatar_base64 = avatar_base64;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getYunxin_accid() {
        return yunxin_accid;
    }

    public void setYunxin_accid(String yunxin_accid) {
        this.yunxin_accid = yunxin_accid;
    }

    public String getYunxin_token() {
        return yunxin_token;
    }

    public void setYunxin_token(String yunxin_token) {
        this.yunxin_token = yunxin_token;
    }

    public String getQq_open_id() {
        return qq_open_id;
    }

    public void setQq_open_id(String qq_open_id) {
        this.qq_open_id = qq_open_id;
    }

    public String getWeibo_id() {
        return weibo_id;
    }

    public void setWeibo_id(String weibo_id) {
        this.weibo_id = weibo_id;
    }

    public long getCif_id() {
        return cif_id;
    }

    public void setCif_id(long cif_id) {
        this.cif_id = cif_id;
    }

    public String getWx_public_account() {
        return wx_public_account;
    }

    public void setWx_public_account(String wx_public_account) {
        this.wx_public_account = wx_public_account;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    public long getAccounts_id() {
        return accounts_id;
    }

    public void setAccounts_id(long accounts_id) {
        this.accounts_id = accounts_id;
    }

    public String getCompany_id() {
        return company_id;
    }

    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }

    public String getUser_key() {
        return user_key;
    }

    public void setUser_key(String user_key) {
        this.user_key = user_key;
    }

    public String getSendercomp_id() {
        return sendercomp_id;
    }

    public void setSendercomp_id(String sendercomp_id) {
        this.sendercomp_id = sendercomp_id;
    }

    public String getUser_status() {
        return user_status;
    }

    public void setUser_status(String user_status) {
        this.user_status = user_status;
    }

    public String getAlias_name() {
        return alias_name;
    }

    public void setAlias_name(String alias_name) {
        this.alias_name = alias_name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public long getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(long last_login_time) {
        this.last_login_time = last_login_time;
    }

    public String getInvite_code() {
        return invite_code;
    }

    public void setInvite_code(String invite_code) {
        this.invite_code = invite_code;
    }

    public int getInvite_num() {
        return invite_num;
    }

    public void setInvite_num(int invite_num) {
        this.invite_num = invite_num;
    }

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    public int getAnswer_num() {
        return answer_num;
    }

    public void setAnswer_num(int answer_num) {
        this.answer_num = answer_num;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", yunxin_accid='" + yunxin_accid + '\'' +
                ", yunxin_token='" + yunxin_token + '\'' +
                ", qq_open_id='" + qq_open_id + '\'' +
                ", weibo_id='" + weibo_id + '\'' +
                ", cif_id=" + cif_id +
                ", wx_public_account='" + wx_public_account + '\'' +
                ", user_type='" + user_type + '\'' +
                ", accounts_id=" + accounts_id +
                ", company_id='" + company_id + '\'' +
                ", user_key='" + user_key + '\'' +
                ", sendercomp_id='" + sendercomp_id + '\'' +
                ", user_status='" + user_status + '\'' +
                ", alias_name='" + alias_name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
